package pe.edu.upc.groupon.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import pe.edu.upc.groupon.dao.DealDao;
import pe.edu.upc.groupon.model.Deal;
import pe.edu.upc.groupon.service.DealService;

@Service
public class DealServiceImpl implements DealService {

	@Autowired
	private DealDao dealDao;
	
	public Deal find(String id)
	{
		return dealDao.find(id);
	}
	
	@Override
	public List<Deal> findAll()
	{
		return dealDao.findAll();
	}
}
